package com.graduation.lastproject.service.admin.AdminHighActive;

import com.graduation.lastproject.entity.*;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface AdminHighService {
    // 统计users总数
    Integer getTotal(User user);

    // 查询user当前页实体对象
    List<User> getUserListPage(User user);

    //更新用户
    int updataUserInfo(Map<String, Object> map);

    //统计business总数
    Integer getBusinessTotal(Business business);

    //查询business当前页对象
    List<Business> getBusinessListPage(Business business);

    //更新商家
    int updataBusinessInfo(Map<String, Object> map);


    //count hotel total
    Integer getBusinessInfoTotal(HotelInfo hotelInfo);


    //hotel list
    List<HotelInfo> getBusinessInfoListPage(HotelInfo hotelInfo);

    //pass hotel
    int passHotel(String id);

    //return hotel
    int returnHotel(Map<String, Object> map);

    /*获取所有订单*/
    int getOrderTotal(Bookorder bookorder);

    /*订单列表*/
    List<Bookorder> getOrderInfoListPage(Bookorder bookorder);

    /*删除订单*/
    int deleteBookorderById(String id);

    /*获取评论总数*/
    int getReviewTotal(Review review);

    /*评论列表*/
    List<Review> getReviewInfoListPage(Review review);

    /*删除评论*/
    int deleteReviewById(String reviewId);

    /*添加商品信息*/
    int insertComInfo(Map<String, Object> info);

    /*获取商品总数*/
    int getComTotal(Commodity commodity);

    /*获取商品信息*/
    List<Commodity> getComInfoListPage(Commodity commodity);

    /*修改商品表数据*/
    int updataExchangeInfo(Map<String, Object> map);

    /*获取兑换记录总数*/
    int getShoporderTotal(Commodityorder commodityorder);

    /*获取兑换记录信息*/
    List<Commodityorder> getShopInfoList(Commodityorder commodityorder);

    /*删除兑换记录*/
    int deleteIntegralorder(String commodity_orderId);

    /*获取饼状图酒店房间预订填充数据*/
    Map<String,Object> getBooknum();

    /*获取饼状图酒店房间预订价格填充数据*/
    Map<String,Object> getBookPrice();

    /*获取酒店总数*/
    int getHotelpriceTotal(Hotelincome hotelincome) throws ParseException;

    /*获取酒店收入信息*/
    List<Hotelincome> getHotelpriceInfo(Hotelincome hotelincome) throws ParseException;

    /*获取酒店所有信息*/
    Map<String,Object> getHotelpriceInfoExport(String inTime) throws ParseException;

    /*删除兑换商品*/
    int deleteComById(String deleteComId);
}
